package com.atguigu.gmall.product.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class SaveAttrInfoVO {

    @JsonProperty("id")
    private Long id;
    @JsonProperty("attrName")
    private String attrName;
    @JsonProperty("categoryId")
    private Long categoryId;
    @JsonProperty("categoryLevel")
    private Integer categoryLevel;


    @JsonProperty("category1Id")
    private Long category1Id;
    @JsonProperty("category2Id")
    private Long category2Id;
    @JsonProperty("category3Id")
    private Long category3Id;
    @JsonProperty("attrValueList")
    private List<AttrValueListDTO> attrValueList;

    @NoArgsConstructor
    @Data
    public static class AttrValueListDTO {
        @JsonProperty("id")
        private Long id;
        @JsonProperty("valueName")
        private String valueName;
        @JsonProperty("attrId")
        private Integer attrId;
    }
}
